# -*- coding: utf-8 -*-
from odoo import models, api, fields, tools
from odoo.exceptions import UserError
import re


class pro_out_in_indicator(models.Model):

    _name = "proman.pro_out_in_indicator"
    _description = "投入产出指标"
    _table = "proman_pro_out_in_indicator"
    _order = "sequence"

    sequence = fields.Integer(string="排序",translate = 0)
    name = fields.Char(string="投入产出名称",help = '请输入投入产出名称',required = 1,translate = 0)
    indicator_category_id = fields.Many2one(string="指标分类",comodel_name = 'proman.pro_out_in_category',translate = 0)
    in_out_category = fields.Selection(string="投入产出类型",selection = [('1', '产出'), ('2', '投入')],default='1',translate = 0)
    uom_id = fields.Many2one(string="计量单位",comodel_name = 'uom.uom',translate = 0)
    memo = fields.Html(string="备注说明",translate = 0)
